import React from 'react'; import { FaceLivenessDetector } from '@aws-amplify/ui-react-liveness'; import { View, Heading, Alert, Card, Text } from '@aws-amplify/ui-react'; export function CustomizationComponents() { return ( {}} components={{ Header: () => { return ( Face Liveness check You will go through a face verification process to prove that you are a real person. ); }, PhotosensitiveWarning: (): JSX.Element => { return ( This check displays colored lights. Use caution if you are photosensitive. ); }, Instructions: (): JSX.Element => { return ( Instructions to follow to use Face Liveness detector
  1. Make sure your face is not covered with sunglasses or a mask.
  2. Move to a well-lit place that is not dark or in direct sunlight.
  3. Fill onscreen oval with your face and hold for colored lights.
); }, ErrorView: ({ children }) => { return ( My Custom Error View {children} ); }, }} /> ); }